package pc.nick.http;

import java.util.HashMap;
import java.util.Map;

public class HttpSession {
    private Map<String, Object> map = new HashMap<>();

    private String id;

    public HttpSession(String id) {
        this.id = id;
    }

    public void setAttribute(String key, Object value) {
        map.put(key, value);
    }

    public Object getAttribute(String key) {
        return map.get(key);
    }

    public void removeAttribute(String key) {
        map.remove(key);
    }
}
